Resolve corrupted output and black frames when extracting multiple disjointed video clips with FFmpeg select filter by using segmented extraction with trim and setpts.